package com.gao.stringBuilder;

import java.util.Scanner;

/**
 * @Author: ShanYuqing
 * @Version: v1.0
 */
public class StringBuilderTest1 {
    /*
            需求：键盘接收一个字符串，程序判断出该字符串是否是对称字符串，并在控制台打印是或不是

     */
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        StringBuilder sb = new StringBuilder();
        StringBuilder sd = sb.append(sc.nextLine());
        System.out.println(sb==sd);
        if(sd.equals(sd.reverse())){
            System.out.println("是");
        }else{
            System.out.println("不是");
        }



    }
}
